package com.diaohw.module.metadata.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.diaohw.module.metadata.obj.convert.MetaRelationshipConvert;
import com.diaohw.module.metadata.obj.dto.MetaRelationshipDTO;
import com.diaohw.module.metadata.obj.entity.MetaRelationshipDO;
import com.diaohw.module.metadata.obj.query.MetaRelationshipQuery;
import com.diaohw.module.metadata.obj.vo.MetaRelationshipVO;
import com.diaohw.platform.common.obj.page.PageResultVo;

import java.util.List;

/**
 * <p>
 * 元数据分组关联关系表 服务类
 * </p>
 *
 * @author D-Hw
 * @since 2025-04-07
 */
public interface MetaRelationshipService extends IService<MetaRelationshipDO> {

    MetaRelationshipConvert INSTANCE = MetaRelationshipConvert.INSTANCE;

    /**
     * 新增
     */
    MetaRelationshipVO create(MetaRelationshipDTO data);

    /**
     * 更新
     */
    MetaRelationshipVO update(String id, MetaRelationshipDTO data);

    /**
     * 删除
     */
    Boolean delete(String id);

    /**
     * 依据ID查看信息
     */
    MetaRelationshipVO detail(String id);

    /**
     * 查询列表
     */
    List<MetaRelationshipVO> findByList(MetaRelationshipQuery query);

    /**
     * 分页查看
     */
    PageResultVo<MetaRelationshipVO> findByPage(MetaRelationshipQuery query);

}
